{% extends 'base.html' %}
{% block title %}
    用户登录
{% endblock %}
{% block styles %}
    {{ super() }}
    <style>
        #container{
            width: 500px;
            margin: 50px auto;
            height: 390px;
        }
    </style>
{% endblock %}
{% block newcontent %}
<div id="container">
    <h3><span style="color: #dc143c; ">{{ msg }}</span></h3>
    <form action="{{ url_for('user.user_login') }}" method="post">
        <div class="form-group">
            <label for="username" class="col-sm-2 control-label">用户名</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="username" name="username" placeholder="用户名">
            </div>
        </div>
        <div class="form-group">
            <label for="password" class="col-sm-2 control-label">密码</label>
            <div class="col-sm-10">
                <input type="password" class="form-control" id="password" name="password" placeholder="密码">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary">登录</button>
            </div>
        </div>
    </form>
</div>
{% endblock %}